/**
 * User: alesj
 * Date: 20.1.2006
 * Time: 18:05:58
 * 
 * (C) Genera Lynx d.o.o.
 */

package com.alesj.blueberry.sar.messages.impl;

import org.springframework.context.support.ReloadableResourceBundleMessageSource;

/**
 * Load resource messages from file: messages_<locale>.properties
 *
 * @author <a href="mailto:ales.justin@genera-lynx.com">Ales Justin</a>
 */
public class FileMessageRepository extends AbstractMessageRepository implements FileMessageRepositoryMBean {

    protected void init() {
        ReloadableResourceBundleMessageSource rrbms = new ReloadableResourceBundleMessageSource();
        rrbms.setBasename("messages");
        rrbms.setDefaultEncoding("UTF-8");
        setMessageSource(rrbms);
    }

}
